﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace SoufunData
{
    public partial class OfficeInfoDetailForm : DevExpress.XtraEditors.XtraForm
    { 
        public OfficeInfoDetailForm(DataRow row)
        {
            InitializeComponent();
            _row = row;
        }

        private DataRow _row;

        private void OfficeInfoDetailForm_Load(object sender, EventArgs e)
        {
            foreach (Control control in this.Controls)
            {
                
                if (control.Name.StartsWith("lb_"))
                {
                    string strColumnName = control.Name.Replace("lb_", "");
                    control.Text = _row[strColumnName].ToString();
                }
                

            }
        }
    }
}